package com.bwhx.eruler.service.impl;

import java.util.LinkedList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Customer;
import com.bwhx.eruler.bean.PCustomer;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.dao.PCustomerDAO;
import com.bwhx.eruler.service.PCustomerService;

@Service
public class PCustomerServiceImpl implements PCustomerService {
	
	@Autowired
	PCustomerDAO pCustomerDAO;

	@Override
	public Boolean insert(LinkedList<PCustomer> customerList) {
		return pCustomerDAO.insertBatch(customerList);
	}

	@Override
	public List<PCustomer> list(Page p) {
		return pCustomerDAO.list(p);
	}

	@Override
	public Integer count(PCustomer pCustomer) {
		return pCustomerDAO.count(pCustomer);
	}

	

	
}
